﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcApplication2.Models.RegisterModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    register
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <div class='Khung'>Đăng ký</div> <br />
    <div class="DangKyNoiDung">
    <%using (Html.BeginForm())
      { %>
        <div class="error"><%=Html.DisplayFor(r=>r.Error) %></div><br/>
        <table cellpadding="0" cellspacing="0" width="100%" style="border-collapse:collapse">
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDung.Username)%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDung.Username, new { @class = "DangKyControl"})%>
                    <%=Html.ValidationMessageFor(r => r.NguoiDung.Username, null, new { @class="error"})%>
                </td>
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDung.Password)%></div>
                </td>
                <td>
                    <%=Html.PasswordFor(r => r.Password, new { @class = "DangKyControl"})%>
                    <%=Html.ValidationMessageFor(r => r.Password, null, new { @class="error"})%>
                </td>
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.ConfirmPassword)%></div>
                </td>
                <td>
                    <%=Html.PasswordFor(r => r.ConfirmPassword, new { @class = "DangKyControl"})%>
                    <%=Html.ValidationMessageFor(r => r.ConfirmPassword, null, new { @class="error"})%>
                </td>                
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDung.TenNguoiDung)%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDung.TenNguoiDung, new { @class = "DangKyControl"})%>
                    <%=Html.ValidationMessageFor(r => r.NguoiDung.TenNguoiDung, null, new { @class="error"})%>
                </td>                
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDung.NgaySinh)%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDung.NgaySinh, new { @class = "DangKyControl", id = "datepicker"})%>
                    <%=Html.ValidationMessageFor(r => r.NguoiDung.NgaySinh, null, new { @class="error"})%>
                </td>                
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDung.Email)%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDung.Email, new { @class = "DangKyControl"})%>
                    <%=Html.ValidationMessageFor(r => r.NguoiDung.Email, null, new { @class="error"})%>
                </td>
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDung.DiaChi)%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDung.DiaChi, new { @class = "DangKyControl"})%>
                    <%=Html.ValidationMessageFor(r => r.NguoiDung.DiaChi, null, new { @class="error"})%>
                </td>
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDung.DienThoai)%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDung.DienThoai, new { @class = "DangKyControl",id="numeric"})%>
                    <%=Html.ValidationMessageFor(r => r.NguoiDung.DienThoai, null, new { @class="error"})%>
                </td>
            </tr>
        </table>
        <br /><br />
        <input type="submit" name="btnDangKy" value="Gửi đăng ký" />
        <input type="reset" name="btnClear" value="Clear" />
    <br />
    <%}%> 
    </div><br />
</asp:Content>
